﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="Contact.aspx.cs" Inherits="Contact" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script type="text/javascript">
        $(document).ready(function () {
            $('select').each(function () {
                if (!$.browser.opera) {
                    $(this).css({ 'z-index': 10, 'opacity': 0, '-khtml-appearance': 'none' });
                    $(this).change(function () {
                        $(this).next().text($('option:selected', this).text());
                    });
                }
            });
            $("#AddCategory").click(function (e) {
                var sel = $('option:selected', $("select.host_reg"));
                var has = false;
                $("#ChosenCategory div.cat_ch").each(function () {
                    if ($(this).attr("name") == sel.val()) {
                        has = true;
                    }
                });

                if (has == false) {
                    var newCatHtml = "<div class=\"cat_ch\" name=\"" + sel.val() + "\"><div class=\"c_one\">" + sel.text() + "</div><div class=\"cancel\">" +
                    "<a href=\"#\"></a></div><div class=\"clear\"></div></div>";
                    $("#ChosenCategory").prepend(newCatHtml);
                }
            });

            $(".cancel a").live("click", function (e) {
                e.preventDefault();
                $(this).parent().parent().remove();
            });


            $("#ContentPlaceHolder1_Submit").click(function (s) {
                var isError = false;

                var categories = "";
                $("#ChosenCategory div.cat_ch").each(function () {
                    categories += $(this).attr("name") + "|";
                });
                $("#ContentPlaceHolder1_HidnField").val(categories);
                if (isError == false) {} else {s.preventDefault();}});});
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <tr>
        <td class="center">
            <div class="all_content">
                <!--header-->
                <div class="content">
                    <div class="content-top">
                        <div class="content-bottom">
                            <div class="content-center">
                                <div class="contact_page">
                                    <div class="contact_left">
                                        <%--                                        <h2>
                                            Contact</h2>
                                        <span>Adress:</span>&nbsp;<span class="adres_other">84Lviv St.Tbilisi,Georgia,0160</span><br />
                                        <span>Phone:</span>&nbsp;<span class="adres_other">+(995 32)249-00-49</span><br />
                                        <span>E-mail:</span>&nbsp;<span class="adres_other">contact@itdc.ge</span>
                                        <div class="clear">
                                        </div>--%>
                                        <div class="contact_form">
                                            <%--<div class="lab_inp">
                                                <label>ამოირჩიე განყოფილება</label><br /><br />
                                                <div class="b_select_long" style="width: 380px;">
                                                    <select id="Division_Select_Box" runat="server" class="host_reg" style="width: 380px;">                                                        
                                                        <option value="1">მხარდაჭერა</option>
                                                        <option value="2">რეკლამები</option>
                                                        <option value="3">ტექნიკური</option>
                                                    </select>
                                                    <span class="new-select" style="width: 200px;">მხარდაჭერა</span>
                                                </div>
                                            </div>--%>
                                            <div class="lab_inp">
                                                <label>
                                                    სახელი</label><br />
                                                <br />
                                                <input id="Name" runat="server" type="text" name="name" value="" class="name_input" /></div>
                                            <div class="lab_inp">
                                                <label>
                                                    ელ. ფოსტა</label><br />
                                                <br />
                                                <input id="From_Mail" runat="server" type="text" name="email" value="" class="name_input" /></div>
                                            <div class="lab_inp" style="margin-right: 55px;">
                                                <label>
                                                    ტექსტი</label><br />
                                                <br />
                                                <textarea id="Input_text" runat="server" cols="70" rows="10" class="contact_textarea"></textarea></div>
                                            <!--button-->
                                            <div class="black_l">
                                                <div class="black_r">
                                                    <div class="black_c">
                                                        <asp:Button ID="Submit" Text="გაგზავნა" runat="server" CssClass="contact_submit"
                                                            OnClick="OnSubmit" />
                                                    </div>
                                                </div>
                                            </div>
                                            <!--button-->
                                        </div>
                                        <!--contact_form-->
                                    </div>
                                    <!--contact_left-->
                                    <div class="contact_right">
                                        <div class="box_title">
                                            საკონტაკტო ინფორმაცია</div>
                                        <div class="atribut">
                                            <span class="atribut_name">Facebook :</span>&nbsp; <span class="adres_other"><a href="https://www.facebook.com/revio.ge?fref=ts" target="_blank">გადადი</a></span><br />
                                            <div class="contact_line">
                                            </div>
                                            <span class="atribut_name">ფოსტა :</span>&nbsp; <span id="Sup_Dep_Mail" runat="server"
                                                class="adres_other">Office@revio.ge</span><br />
                                            <div class="contact_line">
                                            </div>
                                        </div>
                                        <!--atribut-->
                                        <div class="clear">
                                        </div>
                                        <%--<div class="box_title">
                                            Adversting Department</div>
                                        <div class="atribut">
                                            <span class="atribut_name">Telephone :</span>&nbsp; <span class="adres_other">+(995
                                                32)249-00-49</span><br />
                                            <div class="contact_line">
                                            </div>
                                            <span class="atribut_name">Mobile :</span>&nbsp; <span class="adres_other">+(995 55)30-50-49</span><br />
                                            <div class="contact_line">
                                            </div>
                                            <span class="atribut_name">e-mail :</span>&nbsp; <span id="Adv_Dep_Mail" runat="server"
                                                class="adres_other">l.khunjgurua@gmail.com</span><br />
                                            <div class="contact_line">
                                            </div>
                                        </div>
                                        <!--atribut-->
                                        <div class="clear">
                                        </div>
                                        <div class="box_title">
                                            Technical Department</div>
                                        <div class="atribut">
                                            <span class="atribut_name">Telephone :</span>&nbsp; <span class="adres_other">+(995
                                                32)249-00-49</span><br />
                                            <div class="contact_line">
                                            </div>
                                            <span class="atribut_name">Mobile :</span>&nbsp; <span class="adres_other">+(995 55)30-50-49</span><br />
                                            <div class="contact_line">
                                            </div>
                                            <span class="atribut_name">e-mail :</span>&nbsp; <span id="Tech_Dep_Mail" runat="server"
                                                class="adres_other">karlo.tsurtsumia@gmail.ge</span><br />
                                            <div class="contact_line">
                                            </div>
                                        </div>
                                        --%>
                                        <!--atribut-->
                                    </div>
                                    <!--contact_right-->
                                </div>
                                <!--contact_page-->
                            </div>
                            <!-- .content-center-->
                        </div>
                        <!-- .content-bottom-->
                    </div>
                    <!-- .content-internal-->
                </div>
                <!--content-->
            </div>
            <!--all_content-->
            <asp:Literal ID="Script" runat="server" />
        </td>
    </tr>
</asp:Content>
